<div ng-controller="gJoinCtrl">
  <div class="top-header-bar clearfix">
    <!-- <a href="javascript:;" class="a-back" ng-click="goBack();"></a> -->
    <h1>绑定企业</h1>
  </div>
  <div class="n-form-box" ng-show="pageData.step == 1" style="min-height:8rem;">
    <div class="bg-join">

    </div>
    <div class="gray-tip">
      <p>
        您还未完善企业信息，
      </p>
      <p>
        完善企业信息以后您将享受个性化的咨询以及服务
      </p>
    </div>
    <div class="input-box">
      <p>
        <!-- <input type="text" class="company-input" ng-model="pageData.InvitationCode" angucomplete placeholder="请输入企业名称或邀请码"> -->
        <angucomplete
              id="invitationCode"
              placeholder="请输入企业名称或邀请码"
              pause="400"
              selectedobject="pageData.searchData"
              url="{{gConfig.api.GetOneCompany}}?name="
              datafield="data"
              titlefield="name"
              inputclass="company-input"/>
      </p>
      <p class="error-tip" ng-show="pageData.checkerrortip">
该企业名称或邀请码不存在
      </p>
      <p style="margin-top:0.2rem;">
        <a href="javascript:;" class="btn-blue" ng-click="checkCompany()">绑定企业</a>
      </p>
    </div>
    <div class="do-info">
      <ul>
        <li><i class="blue-dot"></i>您可以直接输入企业名称，绑定您所在的企业</li>
        <li><i class="blue-dot"></i>如果您有好友发送的邀请码，则可以直接输入邀请码绑定他所在的企业</li>
      </ul>
    </div>
  </div>
  <div class="join-detail"  ng-show="pageData.step == 2">
    <h2>请完善您的企业信息</h2>
    <dl class="jd-dl">
      <dt class="jd-dl-dt">企业名称</dt>
      <dd class="jd-dl-dd">
        <input type="text" class="jd-txt" ng-model="pageData.searchData.originalObject.name"  value="">
      </dd>
    </dl>
    <dl class="jd-dl">
      <dt class="jd-dl-dt">统一社会信用代码</dt>
      <dd class="jd-dl-dd">
        <input type="text" class="jd-txt" ng-model="pageData.searchData.originalObject.codeCertificate"  required value="">
      </dd>
    </dl>
    <dl class="jd-dl">
      <dt class="jd-dl-dt">营业地址</dt>
      <dd class="jd-dl-dd">
        <input type="text" class="jd-txt" ng-model="pageData.searchData.originalObject.address" value="">
      </dd>
    </dl>
    <dl class="jd-dl">
      <dt class="jd-dl-dt">企业海关编码</dt>
      <dd class="jd-dl-dd">
        <input type="text" class="jd-txt" ng-model="pageData.searchData.originalObject.enterpriseCustomCode" value="">
      </dd>
    </dl>
    <dl class="jd-dl">
      <dt class="jd-dl-dt">企业邮箱</dt>
      <dd class="jd-dl-dd">
        <input type="text" class="jd-txt" ng-model="pageData.searchData.originalObject.email" value="">
      </dd>
    </dl>
    <dl class="jd-dl">
      <dt class="jd-dl-dt">总经理/销售经理</dt>
      <dd class="jd-dl-dd">
        <input type="text" class="jd-txt" ng-model="pageData.searchData.originalObject.legalPerson" value="">
      </dd>
    </dl>
    <dl class="jd-dl">
      <dt class="jd-dl-dt">总经理/销售经理电话</dt>
      <dd class="jd-dl-dd">
        <input type="text" class="jd-txt" ng-model="pageData.searchData.originalObject.legalTel" value="">
      </dd>
    </dl>
    <dl class="jd-dl">
      <dt class="jd-dl-dt">行业</dt>
      <dd class="jd-dl-dd">
        <select class="jd-txt" ng-change="changeIndustry();" ng-model="formData.industry" ng-options="item.title for item in pageData.industryList">
        </select>
      </dd>
    </dl>
    <dl class="jd-dl">
      <dt class="jd-dl-dt">主营商品</dt>
      <dd class="jd-dl-dd">
        <select class="jd-txt" ng-change="changeProductsMain();" ng-model="formData.productsMain" ng-options="item.title for item in pageData.productsMainList">
        </select>
        <div class="sp-list">
          <ul>
            <li ng-repeat="i in pageData.pruductsList">
              <label><input type="checkbox" checklist-model="formData.mainBusiness" checklist-value="i.companyBusinessID"> <span ng-bind="i.title"></span></label>
            </li>
          </ul>
        </div>
      </dd>
    </dl>

    <p class="join-btn-box">
      <a href="javascript:;" class="btn-blue" ng-click="postCompanyInfo();">完成</a>
    </p>
  </div>
<toaster-container toaster-options="{'position-class': 'toast-top-full-width'}"></toaster-container>
  <div class="loading-cover" ng-show="pageData.posting">
    <div class="loading-box"></div>
    请稍后...
  </div>
</div>
